/**
 * Created by Administrator on 2016/5/30.
 */
'use strict';
swan_pc.config(
    function($stateProvider){
        $stateProvider
            .state('calendar', {
                parent:'site',
                url:'/calendar',
                data:{
                    pageTitle:'calendar'
                },
                views:{
                    'content@':{
                        templateUrl:'scripts/components/myself/calendar/calendar.html',
                        controller:'CalendarController'
                    }
                }
            })
            .state('calendarshow',{
                parent:'calendar',
                url:'/calendarshow',
                views:{
                    "CalOrInput@calendar":{
                        templateUrl:"scripts/components/myself/calendar/calendarshow/calendarshow.html",
                        controller:"CalShowController"
                    }
                }
            })
            .state('addclip',{
                parent:'calendar',
                url:'/addclip',
                views:{
                    "CalOrInput@calendar":{
                        templateUrl:"scripts/components/myself/calendar/addclip/addclip.html",
                        controller:"addClipController"
                    }
                }
            })
            .state("clipdetail",{
                parent:"calendar",
                url:"/clipdetail",
                views:{
                    "CalOrInput@calendar":{
                        templateUrl:"scripts/components/myself/calendar/clipdetail/clipdetail.html",
                        controller:"ClipDetailController"
                    }
                }
            })
            .state("clipbookdetail",{
                parent:"calendar",
                url:"/clipbookdetail",
                views:{
                    "CalOrInput@calendar":{
                        templateUrl:"scripts/components/myself/calendar/clipbookdetail/clipbookdetail.html",
                        controller:"ClipBookDetailController"
                    }
                }
            })
    });
